home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 February: Tool Chest / Dev.CD Feb 00 TC.toast / pc / tool chest / development kits / hypercard related / xcmds & xfcns / help xfcn 1.4 / helplab / cards.xml < prev    next >
Encoding:
Text File  |  1993-06-13  |  26.2 KB  |  704 lines

  1. card_3607.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3607</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2576</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3125.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>396</left>
  24.             <top>202</top>
  25.             <right>416</right>
  26.             <bottom>223</bottom>
  27.         </rect>
  28.         <style>transparent</style>
  29.         <showName> <false /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <true /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>6720</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>New Button</name>
  41.         <script>on mouseUp
  42. go to first card
  43. end mouseUp</script>
  44.     </part>
  45.     <part>
  46.         <id>2</id>
  47.         <type>field</type>
  48.         <visible> <true /> </visible>
  49.         <dontWrap> <false /> </dontWrap>
  50.         <dontSearch> <false /> </dontSearch>
  51.         <sharedText> <false /> </sharedText>
  52.         <fixedLineHeight> <false /> </fixedLineHeight>
  53.         <autoTab> <false /> </autoTab>
  54.         <lockText> <true /> </lockText>
  55.         <rect>
  56.             <left>2</left>
  57.             <top>1</top>
  58.             <right>396</right>
  59.             <bottom>223</bottom>
  60.         </rect>
  61.         <style>scrolling</style>
  62.         <autoSelect> <false /> </autoSelect>
  63.         <showLines> <false /> </showLines>
  64.         <wideMargins> <false /> </wideMargins>
  65.         <multipleLines> <false /> </multipleLines>
  66.         <reservedFamily> 0 </reservedFamily>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>left</textAlign>
  70.         <font>Geneva</font>
  71.         <textSize>10</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <textHeight>13</textHeight>
  74.         <name></name>
  75.         <script></script>
  76.     </part>
  77.     <content>
  78.         <layer>card</layer>
  79.         <id>2</id>
  80.         <text>Additional information is provided in the release notes.  The following is an exerpt:
  81.  
  82. Form is:
  83.  
  84.     put Help(command, parameter, parameter) into errorMsg
  85.  
  86. Commands and parameters are as follows:
  87.  
  88.     put Help("ShowBalloon", helpMsg, tip, optionalHotRect) into errMsg
  89.     put Help("RemoveBalloon") into errorMsg
  90.  
  91. "ShowBalloon" displays the helpMsg at the tip location.  The helpMsg is any text string.  The tip is a HyperCard mouseLoc (two integers separated by a comma, representing horizontal and vertical pixel offsets from the top-left corner of the card.)  The balloon stays up until one of the following happens:
  92.  
  93.     The user turns Balloon Help on or off;
  94.     A "RemoveBalloon" command is sent to the XFCN;
  95.     The cursor leaves the optionalHotRect.;
  96.     Another "Show..." Balloon command is sent to the XFCN; or
  97.     Another application, such as the Finder, displays a balloon.
  98.  
  99. The optionalHotRect is an optional parameter giving a rectangle in HyperCard local coordinates (left, top, right, bottom.)  If this parameter is present, the Help Manager tracks the mouse within the rectangle and automatically removes the Balloon when the cursor leaves the rectangle.  Balloon Help must be turned ON (from the menu bar) for this feature to work.
  100.  
  101. "RemoveBalloon" removes the Balloon from the screen.  If no balloon is being shown, then no action is taken.  The XFCN does not affect the user's state of Balloon Help.
  102.  
  103. Additional commands and parameters are described in the release notes.
  104.  
  105. The XFCN also supports the use of "!" for version information and "?" for help as follows:
  106.     put Help("!") into versionInfo
  107.     put Help("?") into helpInfo
  108.  
  109. The following resources are required for XFCN operation:
  110.      type         ID         Name
  111.     XFCN     16373     Help    
  112.     STR#    16373     Help    
  113.  
  114. Resource identification is by Name, ID numbers may be changed.
  115.  
  116. The following error messages may be returned from the XFCN:
  117.         "Err 00 Missing STR# for Help"
  118.         "Err 01 Missing command"
  119.         "Err 02 Command is not recognized"
  120.         "Err 03 At least three parameters are required"
  121.         "Err 04 This operating system does not support the Help Manager"
  122.         "Err 05 Point parameter is invalid"
  123.         "Err 06 Rect parameter is invalid"
  124.         "Err 07 HMShowBalloon error = "
  125.         "Err 08 HMSetBalloons error = "
  126.         "Err 09 HMRemoveBalloon error = "
  127.         "Err 10 Insufficient memory"
  128.         "Err 11 Problem storing handle in global"
  129.         "Err 12 Balloon Help must be ON to use the hotRect"
  130.  
  131. This XFCN should run under System 7.0 and pre-7.0.  It's not very useful under pre-7.0, but it will run.  This XFCN should also run under HyperCard 2.0 and pre-2.0.
  132. </text>
  133.     </content>
  134.     <name>Release Notes</name>
  135.     <script></script>
  136. </card>
  137.  
  138.  
  139. card_3977.xml
  140. <?xml version="1.0" encoding="utf-8" ?>
  141. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  142. <card>
  143.     <id>3977</id>
  144.     <filler1>0</filler1>
  145.     <bitmap>BMAP_4483.pbm</bitmap>
  146.     <cantDelete> <false /> </cantDelete>
  147.     <showPict> <true /> </showPict>
  148.     <dontSearch> <false /> </dontSearch>
  149.     <owner>2576</owner>
  150.     <link rel="stylesheet" type="text/css" href="stylesheet_3125.css" />
  151.     <part>
  152.         <id>3</id>
  153.         <type>field</type>
  154.         <visible> <true /> </visible>
  155.         <dontWrap> <false /> </dontWrap>
  156.         <dontSearch> <false /> </dontSearch>
  157.         <sharedText> <false /> </sharedText>
  158.         <fixedLineHeight> <false /> </fixedLineHeight>
  159.         <autoTab> <false /> </autoTab>
  160.         <lockText> <true /> </lockText>
  161.         <rect>
  162.             <left>81</left>
  163.             <top>70</top>
  164.             <right>321</right>
  165.             <bottom>185</bottom>
  166.         </rect>
  167.         <style>rectangle</style>
  168.         <autoSelect> <false /> </autoSelect>
  169.         <showLines> <false /> </showLines>
  170.         <wideMargins> <false /> </wideMargins>
  171.         <multipleLines> <false /> </multipleLines>
  172.         <reservedFamily> 0 </reservedFamily>
  173.         <titleWidth>0</titleWidth>
  174.         <icon>0</icon>
  175.         <textAlign>center</textAlign>
  176.         <font>Geneva</font>
  177.         <textSize>12</textSize>
  178.         <textStyle>bold</textStyle>
  179.         <textHeight>16</textHeight>
  180.         <name>Test Area</name>
  181.         <script>--
  182. -- Display the balloon which
  183. -- is best for the object and
  184. -- the current cursor location.
  185. --
  186. on mouseEnter
  187. global gMsgText, gTargetRect, gTargetEntry, gTargetInset
  188. put "See how the balloon adjusts"¬¨
  189. && "for optimal viewing of the test area." into gMsgText
  190. put the rect of target into gTargetRect
  191. put the mouseLoc into gTargetEntry
  192. put cd fld "inset" into gTargetInset
  193. put Help("ShowBalloon", gMsgText,,gTargetRect,¬¨
  194. gTargetEntry,gTargetInset) into cd fld "helpResult"
  195. Be853FreeAdv
  196. end mouseEnter
  197.  
  198. --
  199. -- we don't need the "mouseLeave" handler
  200. -- because we are passing the target rect
  201. -- to the Help Manager.
  202. --
  203.  
  204. on Be853FreeAdv
  205. global gMsgText, gTargetRect, gTargetEntry, gTargetInset
  206. -- a -853 means that the Help Manager detected a
  207. -- rapid cursor movement and, thinking that the
  208. -- cursor was just 'passing thru', did not display
  209. -- the balloon.  We try again until successful.
  210. --
  211. -- This handler is the "advanced" version of
  212. -- the basic handler in the stack script
  213. --
  214. repeat until "-853" is not in cd fld "helpResult"
  215. put Help("ShowBalloon", gMsgText,,gTargetRect,¬¨
  216. gTargetEntry,gTargetInset) into cd fld "helpResult"
  217. end repeat
  218. end Be853FreeAdv
  219.  
  220. </script>
  221.     </part>
  222.     <part>
  223.         <id>4</id>
  224.         <type>field</type>
  225.         <visible> <true /> </visible>
  226.         <dontWrap> <false /> </dontWrap>
  227.         <dontSearch> <false /> </dontSearch>
  228.         <sharedText> <false /> </sharedText>
  229.         <fixedLineHeight> <false /> </fixedLineHeight>
  230.         <autoTab> <false /> </autoTab>
  231.         <lockText> <true /> </lockText>
  232.         <rect>
  233.             <left>6</left>
  234.             <top>276</top>
  235.             <right>273</right>
  236.             <bottom>291</bottom>
  237.         </rect>
  238.         <style>rectangle</style>
  239.         <autoSelect> <false /> </autoSelect>
  240.         <showLines> <false /> </showLines>
  241.         <wideMargins> <false /> </wideMargins>
  242.         <multipleLines> <false /> </multipleLines>
  243.         <reservedFamily> 0 </reservedFamily>
  244.         <titleWidth>0</titleWidth>
  245.         <icon>0</icon>
  246.         <textAlign>left</textAlign>
  247.         <font>Geneva</font>
  248.         <textSize>9</textSize>
  249.         <textStyle>plain</textStyle>
  250.         <textHeight>12</textHeight>
  251.         <name>helpResult</name>
  252.         <script></script>
  253.     </part>
  254.     <part>
  255.         <id>5</id>
  256.         <type>field</type>
  257.         <visible> <true /> </visible>
  258.         <dontWrap> <false /> </dontWrap>
  259.         <dontSearch> <false /> </dontSearch>
  260.         <sharedText> <false /> </sharedText>
  261.         <fixedLineHeight> <true /> </fixedLineHeight>
  262.         <autoTab> <false /> </autoTab>
  263.         <lockText> <false /> </lockText>
  264.         <rect>
  265.             <left>102</left>
  266.             <top>229</top>
  267.             <right>208</right>
  268.             <bottom>244</bottom>
  269.         </rect>
  270.         <style>transparent</style>
  271.         <autoSelect> <false /> </autoSelect>
  272.         <showLines> <true /> </showLines>
  273.         <wideMargins> <false /> </wideMargins>
  274.         <multipleLines> <false /> </multipleLines>
  275.         <reservedFamily> 0 </reservedFamily>
  276.         <titleWidth>0</titleWidth>
  277.         <icon>0</icon>
  278.         <textAlign>left</textAlign>
  279.         <font>Geneva</font>
  280.         <textSize>9</textSize>
  281.         <textStyle>plain</textStyle>
  282.         <textHeight>12</textHeight>
  283.         <name>inset</name>
  284.         <script></script>
  285.     </part>
  286.     <part>
  287.         <id>7</id>
  288.         <type>button</type>
  289.         <visible> <true /> </visible>
  290.         <reserved5> 0 </reserved5>
  291.         <reserved4> 0 </reserved4>
  292.         <reserved3> 0 </reserved3>
  293.         <reserved2> 0 </reserved2>
  294.         <reserved1> 0 </reserved1>
  295.         <enabled> <true /> </enabled>
  296.         <rect>
  297.             <left>354</left>
  298.             <top>239</top>
  299.             <right>408</right>
  300.             <bottom>287</bottom>
  301.         </rect>
  302.         <style>transparent</style>
  303.         <showName> <true /> </showName>
  304.         <highlight> <false /> </highlight>
  305.         <autoHighlight> <true /> </autoHighlight>
  306.         <sharedHighlight> <true /> </sharedHighlight>
  307.         <family>0</family>
  308.         <titleWidth>0</titleWidth>
  309.         <icon>29114</icon>
  310.         <textAlign>center</textAlign>
  311.         <font>Chicago</font>
  312.         <textSize>12</textSize>
  313.         <textStyle>plain</textStyle>
  314.         <name>Return</name>
  315.         <script>on mouseUp
  316. go to card "Basic"
  317. end mouseUp</script>
  318.     </part>
  319.     <content>
  320.         <layer>card</layer>
  321.         <id>3</id>
  322.         <text>
  323. Slide the cursor
  324. into
  325. this field
  326. from
  327. various sides and corners
  328. </text>
  329.     </content>
  330.     <name>Advanced</name>
  331.     <script></script>
  332. </card>
  333.  
  334.  
  335. card_2969.xml
  336. <?xml version="1.0" encoding="utf-8" ?>
  337. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  338. <card>
  339.     <id>2969</id>
  340.     <filler1>0</filler1>
  341.     <bitmap>BMAP_2171.pbm</bitmap>
  342.     <cantDelete> <false /> </cantDelete>
  343.     <showPict> <true /> </showPict>
  344.     <dontSearch> <false /> </dontSearch>
  345.     <owner>2576</owner>
  346.     <link rel="stylesheet" type="text/css" href="stylesheet_3125.css" />
  347.     <part>
  348.         <id>9</id>
  349.         <type>button</type>
  350.         <visible> <true /> </visible>
  351.         <reserved5> 0 </reserved5>
  352.         <reserved4> 0 </reserved4>
  353.         <reserved3> 0 </reserved3>
  354.         <reserved2> 0 </reserved2>
  355.         <reserved1> 0 </reserved1>
  356.         <enabled> <true /> </enabled>
  357.         <rect>
  358.             <left>235</left>
  359.             <top>19</top>
  360.             <right>393</right>
  361.             <bottom>42</bottom>
  362.         </rect>
  363.         <style>shadow</style>
  364.         <showName> <true /> </showName>
  365.         <highlight> <false /> </highlight>
  366.         <autoHighlight> <true /> </autoHighlight>
  367.         <sharedHighlight> <true /> </sharedHighlight>
  368.         <family>0</family>
  369.         <titleWidth>0</titleWidth>
  370.         <icon>0</icon>
  371.         <textAlign>center</textAlign>
  372.         <font>Chicago</font>
  373.         <textSize>12</textSize>
  374.         <textStyle>plain</textStyle>
  375.         <name>Show Balloon</name>
  376.         <script>on mouseUp
  377. ShowBalloon cd fld "helpMessage", cd fld "clickLocation"
  378. end mouseUp
  379.  
  380. on mouseEnter
  381. ShowAutoBalloon "Click to show"¬¨
  382. && "the 'balloon message' at the 'balloon location'."
  383. end mouseEnter
  384.  
  385. on mouseLeave
  386. RemoveAutoBalloon
  387. end mouseLeave
  388.  
  389. </script>
  390.     </part>
  391.     <part>
  392.         <id>14</id>
  393.         <type>button</type>
  394.         <visible> <true /> </visible>
  395.         <reserved5> 0 </reserved5>
  396.         <reserved4> 0 </reserved4>
  397.         <reserved3> 0 </reserved3>
  398.         <reserved2> 0 </reserved2>
  399.         <reserved1> 0 </reserved1>
  400.         <enabled> <true /> </enabled>
  401.         <rect>
  402.             <left>329</left>
  403.             <top>205</top>
  404.             <right>405</right>
  405.             <bottom>222</bottom>
  406.         </rect>
  407.         <style>shadow</style>
  408.         <showName> <true /> </showName>
  409.         <highlight> <false /> </highlight>
  410.         <autoHighlight> <true /> </autoHighlight>
  411.         <sharedHighlight> <true /> </sharedHighlight>
  412.         <family>0</family>
  413.         <titleWidth>0</titleWidth>
  414.         <icon>0</icon>
  415.         <textAlign>center</textAlign>
  416.         <font>Geneva</font>
  417.         <textSize>10</textSize>
  418.         <textStyle>bold</textStyle>
  419.         <name>Who Am I?</name>
  420.         <script>on mouseUp
  421. put Help("!") into message box
  422. end mouseUp
  423.  
  424. on mouseEnter
  425. ShowAutoBalloon "Click to see"¬¨
  426. && "the version identification of the XFCN."
  427. end mouseEnter
  428.  
  429. on mouseLeave
  430. RemoveAutoBalloon
  431. end mouseLeave
  432.  
  433. </script>
  434.     </part>
  435.     <part>
  436.         <id>15</id>
  437.         <type>field</type>
  438.         <visible> <true /> </visible>
  439.         <dontWrap> <false /> </dontWrap>
  440.         <dontSearch> <false /> </dontSearch>
  441.         <sharedText> <false /> </sharedText>
  442.         <fixedLineHeight> <false /> </fixedLineHeight>
  443.         <autoTab> <false /> </autoTab>
  444.         <lockText> <false /> </lockText>
  445.         <rect>
  446.             <left>13</left>
  447.             <top>64</top>
  448.             <right>196</right>
  449.             <bottom>80</bottom>
  450.         </rect>
  451.         <style>rectangle</style>
  452.         <autoSelect> <false /> </autoSelect>
  453.         <showLines> <false /> </showLines>
  454.         <wideMargins> <false /> </wideMargins>
  455.         <multipleLines> <false /> </multipleLines>
  456.         <reservedFamily> 0 </reservedFamily>
  457.         <titleWidth>0</titleWidth>
  458.         <icon>0</icon>
  459.         <textAlign>left</textAlign>
  460.         <font>Geneva</font>
  461.         <textSize>10</textSize>
  462.         <textStyle>bold</textStyle>
  463.         <textHeight>13</textHeight>
  464.         <name>clickLocation</name>
  465.         <script>on mouseEnter
  466. ShowAutoBalloon "This value will be the balloon tip location"¬¨
  467. && "when you click on a 'Show....' button."¬¨
  468. && "You can set this value by clicking on the card or"¬¨
  469. && "entering it manually."
  470. end mouseEnter
  471.  
  472. on mouseLeave
  473. RemoveAutoBalloon
  474. end mouseLeave
  475. </script>
  476.     </part>
  477.     <part>
  478.         <id>16</id>
  479.         <type>field</type>
  480.         <visible> <true /> </visible>
  481.         <dontWrap> <false /> </dontWrap>
  482.         <dontSearch> <false /> </dontSearch>
  483.         <sharedText> <false /> </sharedText>
  484.         <fixedLineHeight> <false /> </fixedLineHeight>
  485.         <autoTab> <false /> </autoTab>
  486.         <lockText> <false /> </lockText>
  487.         <rect>
  488.             <left>13</left>
  489.             <top>101</top>
  490.             <right>206</right>
  491.             <bottom>168</bottom>
  492.         </rect>
  493.         <style>scrolling</style>
  494.         <autoSelect> <false /> </autoSelect>
  495.         <showLines> <false /> </showLines>
  496.         <wideMargins> <false /> </wideMargins>
  497.         <multipleLines> <false /> </multipleLines>
  498.         <reservedFamily> 0 </reservedFamily>
  499.         <titleWidth>0</titleWidth>
  500.         <icon>0</icon>
  501.         <textAlign>left</textAlign>
  502.         <font>Geneva</font>
  503.         <textSize>10</textSize>
  504.         <textStyle>bold</textStyle>
  505.         <textHeight>13</textHeight>
  506.         <name>helpMessage</name>
  507.         <script>on mouseEnter
  508. ShowAutoBalloon "This is the message that will be"¬¨
  509. && "displayed when you click on a 'Show....' button."
  510. end mouseEnter
  511.  
  512. on mouseLeave
  513. RemoveAutoBalloon
  514. end mouseLeave
  515. </script>
  516.     </part>
  517.     <part>
  518.         <id>17</id>
  519.         <type>field</type>
  520.         <visible> <true /> </visible>
  521.         <dontWrap> <false /> </dontWrap>
  522.         <dontSearch> <false /> </dontSearch>
  523.         <sharedText> <false /> </sharedText>
  524.         <fixedLineHeight> <false /> </fixedLineHeight>
  525.         <autoTab> <false /> </autoTab>
  526.         <lockText> <true /> </lockText>
  527.         <rect>
  528.             <left>13</left>
  529.             <top>187</top>
  530.             <right>206</right>
  531.             <bottom>214</bottom>
  532.         </rect>
  533.         <style>rectangle</style>
  534.         <autoSelect> <false /> </autoSelect>
  535.         <showLines> <false /> </showLines>
  536.         <wideMargins> <false /> </wideMargins>
  537.         <multipleLines> <false /> </multipleLines>
  538.         <reservedFamily> 0 </reservedFamily>
  539.         <titleWidth>0</titleWidth>
  540.         <icon>0</icon>
  541.         <textAlign>left</textAlign>
  542.         <font>Geneva</font>
  543.         <textSize>9</textSize>
  544.         <textStyle>plain</textStyle>
  545.         <textHeight>12</textHeight>
  546.         <name>helpResult</name>
  547.         <script>on mouseEnter
  548. ShowAutoBalloon "What?  Errors?  No way!"¬¨
  549. & return & "(However, an occasional '-853' error is okay.)"
  550. end mouseEnter
  551.  
  552. on mouseLeave
  553. RemoveAutoBalloon
  554. end mouseLeave
  555. </script>
  556.     </part>
  557.     <part>
  558.         <id>18</id>
  559.         <type>button</type>
  560.         <visible> <true /> </visible>
  561.         <reserved5> 0 </reserved5>
  562.         <reserved4> 0 </reserved4>
  563.         <reserved3> 0 </reserved3>
  564.         <reserved2> 0 </reserved2>
  565.         <reserved1> 0 </reserved1>
  566.         <enabled> <true /> </enabled>
  567.         <rect>
  568.             <left>235</left>
  569.             <top>51</top>
  570.             <right>393</right>
  571.             <bottom>74</bottom>
  572.         </rect>
  573.         <style>shadow</style>
  574.         <showName> <true /> </showName>
  575.         <highlight> <false /> </highlight>
  576.         <autoHighlight> <true /> </autoHighlight>
  577.         <sharedHighlight> <true /> </sharedHighlight>
  578.         <family>0</family>
  579.         <titleWidth>0</titleWidth>
  580.         <icon>0</icon>
  581.         <textAlign>center</textAlign>
  582.         <font>Chicago</font>
  583.         <textSize>12</textSize>
  584.         <textStyle>plain</textStyle>
  585.         <name>Remove Balloon</name>
  586.         <script>on mouseUp
  587. RemoveBalloon
  588. end mouseUp
  589.  
  590. on mouseEnter
  591. ShowAutoBalloon "Click to remove"¬¨
  592. && "a balloon."
  593. end mouseEnter
  594.  
  595. on mouseLeave
  596. RemoveAutoBalloon
  597. end mouseLeave
  598.  
  599. </script>
  600.     </part>
  601.     <part>
  602.         <id>21</id>
  603.         <type>button</type>
  604.         <visible> <true /> </visible>
  605.         <reserved5> 0 </reserved5>
  606.         <reserved4> 0 </reserved4>
  607.         <reserved3> 0 </reserved3>
  608.         <reserved2> 0 </reserved2>
  609.         <reserved1> 0 </reserved1>
  610.         <enabled> <true /> </enabled>
  611.         <rect>
  612.             <left>329</left>
  613.             <top>183</top>
  614.             <right>405</right>
  615.             <bottom>200</bottom>
  616.         </rect>
  617.         <style>shadow</style>
  618.         <showName> <true /> </showName>
  619.         <highlight> <false /> </highlight>
  620.         <autoHighlight> <true /> </autoHighlight>
  621.         <sharedHighlight> <true /> </sharedHighlight>
  622.         <family>0</family>
  623.         <titleWidth>0</titleWidth>
  624.         <icon>0</icon>
  625.         <textAlign>center</textAlign>
  626.         <font>Geneva</font>
  627.         <textSize>10</textSize>
  628.         <textStyle>bold</textStyle>
  629.         <name>What Am I?</name>
  630.         <script>on mouseUp
  631. go to card "Release Notes"
  632. end mouseUp
  633.  
  634. on mouseEnter
  635. ShowAutoBalloon "Click to see"¬¨
  636. && "more information about this XFCN."
  637. end mouseEnter
  638.  
  639. on mouseLeave
  640. RemoveAutoBalloon
  641. end mouseLeave
  642.  
  643. </script>
  644.     </part>
  645.     <part>
  646.         <id>23</id>
  647.         <type>button</type>
  648.         <visible> <true /> </visible>
  649.         <reserved5> 0 </reserved5>
  650.         <reserved4> 0 </reserved4>
  651.         <reserved3> 0 </reserved3>
  652.         <reserved2> 0 </reserved2>
  653.         <reserved1> 0 </reserved1>
  654.         <enabled> <true /> </enabled>
  655.         <rect>
  656.             <left>235</left>
  657.             <top>124</top>
  658.             <right>393</right>
  659.             <bottom>147</bottom>
  660.         </rect>
  661.         <style>shadow</style>
  662.         <showName> <true /> </showName>
  663.         <highlight> <false /> </highlight>
  664.         <autoHighlight> <true /> </autoHighlight>
  665.         <sharedHighlight> <true /> </sharedHighlight>
  666.         <family>0</family>
  667.         <titleWidth>0</titleWidth>
  668.         <icon>0</icon>
  669.         <textAlign>center</textAlign>
  670.         <font>Chicago</font>
  671.         <textSize>12</textSize>
  672.         <textStyle>plain</textStyle>
  673.         <name>Show Using hotRect</name>
  674.         <script>on mouseUp
  675. -- we pass the button rectangle for the hotRect.
  676. -- The XFCN will convert it to Global coordinates
  677. -- in QuickDraw form.
  678. put the rect of target into hotRect
  679. ShowBalloonWithHotRect cd fld "helpMessage",¬¨
  680. the clickLoc, hotRect
  681. end mouseUp
  682.  
  683. on mouseEnter
  684. ShowAutoBalloon "Click to show the balloon."¬¨
  685. && "The balloon will automatically go away"¬¨
  686. && "when you leave the hotRect (this button.)"
  687. end mouseEnter
  688.  
  689. on mouseLeave
  690. RemoveAutoBalloon
  691. end mouseLeave
  692.  
  693. </script>
  694.     </part>
  695.     <part>
  696.         <id>25</id>
  697.         <type>field</type>
  698.         <visible> <true /> </visible>
  699.         <dontWrap> <false /> </dontWrap>
  700.         <dontSearch> <false /> </dontSearch>
  701.         <sharedText> <false /> </sharedText>
  702.         <fixedLineHeight> <false /> </fixedLineHeight>
  703.         <autoTab> <false /> </autoTab>
  704.         <lockText> <true /> </lockText>
  705.         <rect>
  706.             <left>247</left>
  707.             <top>192</top>
  708.             <right>306</right>
  709.             <bottom>209</bottom>
  710.         </rect>
  711.         <style>shadow</style>
  712.         <autoSelect> <false /> </autoSelect>
  713.         <showLines> <false /> </showLines>
  714.         <wideMargins> <false /> </wideMargins>
  715.         <multipleLines> <false /> </multipleLines>
  716.         <reservedFamily> 0 </reservedFamily>
  717.         <titleWidth>0</titleWidth>
  718.         <icon>0</icon>
  719.         <textAlign>left</textAlign>
  720.         <font>Geneva</font>
  721.         <textSize>9</textSize>
  722.         <textStyle>plain</textStyle>
  723.         <textHeight>12</textHeight>
  724.         <name>globalValue</name>
  725.         <script>on mouseUp
  726. global HelpXfcnGlobal
  727. put empty into me -- flash
  728. put HelpXfcnGlobal into me
  729. end mouseUp
  730.  
  731. on mouseEnter
  732. ShowAutoBalloon "This field displays the value of"¬¨
  733. && "a handle to the alternativeRect (hotRect)"¬¨
  734. && "used by HMShowBalloon.  It's only useful"¬¨
  735. && "for John's debugging. Click to update."
  736. end mouseEnter
  737.  
  738. on mouseLeave
  739. RemoveAutoBalloon
  740. end mouseLeave
  741.  
  742. </script>
  743.     </part>
  744.     <part>
  745.         <id>26</id>
  746.         <type>button</type>
  747.         <visible> <true /> </visible>
  748.         <reserved5> 0 </reserved5>
  749.         <reserved4> 0 </reserved4>
  750.         <reserved3> 0 </reserved3>
  751.         <reserved2> 0 </reserved2>
  752.         <reserved1> 0 </reserved1>
  753.         <enabled> <true /> </enabled>
  754.         <rect>
  755.             <left>60</left>
  756.             <top>10</top>
  757.             <right>161</right>
  758.             <bottom>46</bottom>
  759.         </rect>
  760.         <style>checkbox</style>
  761.         <showName> <true /> </showName>
  762.         <highlight> <true /> </highlight>
  763.         <autoHighlight> <false /> </autoHighlight>
  764.         <sharedHighlight> <true /> </sharedHighlight>
  765.         <family>0</family>
  766.         <titleWidth>0</titleWidth>
  767.         <icon>0</icon>
  768.         <textAlign>center</textAlign>
  769.         <font>Chicago</font>
  770.         <textSize>12</textSize>
  771.         <textStyle>plain</textStyle>
  772.         <name>Auto-Show</name>
  773.         <script>on mouseUp
  774. set the hilite of me to not the hilite of me
  775. giveHelpMessage -- toggles to new help message
  776. end mouseUp
  777.  
  778. on mouseEnter
  779. giveHelpMessage
  780. end mouseEnter
  781.  
  782. on giveHelpMessage
  783. -- you always get a balloon with this button
  784. if not the hilite of cd btn "Auto-Show" then
  785. put "Set Auto-Show to display balloons automatically."¬¨
  786. && "Balloons will display for all card objects,"¬¨
  787. && "when you click on the card, and when you click"¬¨
  788. && "on a 'Show....' button."¬¨
  789. into helpMessage
  790. else
  791. put "Turn this off to quiet automatic balloons display."¬¨
  792. && "The 'Show....' buttons will still work."¬¨
  793. into helpMessage
  794. end if
  795. ShowBalloon helpMessage, prettyTip()
  796. end giveHelpMessage
  797.  
  798. on mouseLeave
  799. RemoveBalloon
  800. end mouseLeave
  801.  
  802. </script>
  803.     </part>
  804.     <part>
  805.         <id>34</id>
  806.         <type>button</type>
  807.         <visible> <true /> </visible>
  808.         <reserved5> 0 </reserved5>
  809.         <reserved4> 0 </reserved4>
  810.         <reserved3> 0 </reserved3>
  811.         <reserved2> 0 </reserved2>
  812.         <reserved1> 0 </reserved1>
  813.         <enabled> <true /> </enabled>
  814.         <rect>
  815.             <left>12</left>
  816.             <top>251</top>
  817.             <right>170</right>
  818.             <bottom>274</bottom>
  819.         </rect>
  820.         <style>shadow</style>
  821.         <showName> <true /> </showName>
  822.         <highlight> <false /> </highlight>
  823.         <autoHighlight> <true /> </autoHighlight>
  824.         <sharedHighlight> <true /> </sharedHighlight>
  825.         <family>0</family>
  826.         <titleWidth>0</titleWidth>
  827.         <icon>0</icon>
  828.         <textAlign>center</textAlign>
  829.         <font>Chicago</font>
  830.         <textSize>12</textSize>
  831.         <textStyle>plain</textStyle>
  832.         <name>Turn Balloons On</name>
  833.         <script>on mouseUp
  834. TurnOn
  835. end mouseUp
  836.  
  837. on mouseEnter
  838. ShowAutoBalloon "Click to turn"¬¨
  839. && "Balloons on."
  840. end mouseEnter
  841.  
  842. on mouseLeave
  843. RemoveAutoBalloon
  844. end mouseLeave
  845.  
  846. </script>
  847.     </part>
  848.     <part>
  849.         <id>35</id>
  850.         <type>button</type>
  851.         <visible> <true /> </visible>
  852.         <reserved5> 0 </reserved5>
  853.         <reserved4> 0 </reserved4>
  854.         <reserved3> 0 </reserved3>
  855.         <reserved2> 0 </reserved2>
  856.         <reserved1> 0 </reserved1>
  857.         <enabled> <true /> </enabled>
  858.         <rect>
  859.             <left>183</left>
  860.             <top>251</top>
  861.             <right>341</right>
  862.             <bottom>274</bottom>
  863.         </rect>
  864.         <style>shadow</style>
  865.         <showName> <true /> </showName>
  866.         <highlight> <false /> </highlight>
  867.         <autoHighlight> <true /> </autoHighlight>
  868.         <sharedHighlight> <true /> </sharedHighlight>
  869.         <family>0</family>
  870.         <titleWidth>0</titleWidth>
  871.         <icon>0</icon>
  872.         <textAlign>center</textAlign>
  873.         <font>Chicago</font>
  874.         <textSize>12</textSize>
  875.         <textStyle>plain</textStyle>
  876.         <name>Turn Balloons Off</name>
  877.         <script>on mouseUp
  878. TurnOff
  879. end mouseUp
  880.  
  881. on mouseEnter
  882. ShowAutoBalloon "Click to turn"¬¨
  883. && "Balloons off."
  884. end mouseEnter
  885.  
  886. on mouseLeave
  887. RemoveAutoBalloon
  888. end mouseLeave
  889.  
  890. </script>
  891.     </part>
  892.     <part>
  893.         <id>37</id>
  894.         <type>button</type>
  895.         <visible> <true /> </visible>
  896.         <reserved5> 0 </reserved5>
  897.         <reserved4> 0 </reserved4>
  898.         <reserved3> 0 </reserved3>
  899.         <reserved2> 0 </reserved2>
  900.         <reserved1> 0 </reserved1>
  901.         <enabled> <true /> </enabled>
  902.         <rect>
  903.             <left>355</left>
  904.             <top>239</top>
  905.             <right>408</right>
  906.             <bottom>287</bottom>
  907.         </rect>
  908.         <style>transparent</style>
  909.         <showName> <true /> </showName>
  910.         <highlight> <false /> </highlight>
  911.         <autoHighlight> <true /> </autoHighlight>
  912.         <sharedHighlight> <true /> </sharedHighlight>
  913.         <family>0</family>
  914.         <titleWidth>0</titleWidth>
  915.         <icon>26425</icon>
  916.         <textAlign>center</textAlign>
  917.         <font>Chicago</font>
  918.         <textSize>12</textSize>
  919.         <textStyle>plain</textStyle>
  920.         <name>More</name>
  921.         <script>on mouseUp
  922. go to card "Advanced"
  923. end mouseUp
  924.  
  925. on mouseEnter
  926. ShowAutoBalloon "Click to"¬¨
  927. && "see the advanced features."
  928. end mouseEnter
  929.  
  930. on mouseLeave
  931. RemoveAutoBalloon
  932. end mouseLeave
  933.  
  934. </script>
  935.     </part>
  936.     <part>
  937.         <id>44</id>
  938.         <type>button</type>
  939.         <visible> <true /> </visible>
  940.         <reserved5> 0 </reserved5>
  941.         <reserved4> 0 </reserved4>
  942.         <reserved3> 0 </reserved3>
  943.         <reserved2> 0 </reserved2>
  944.         <reserved1> 0 </reserved1>
  945.         <enabled> <true /> </enabled>
  946.         <rect>
  947.             <left>235</left>
  948.             <top>152</top>
  949.             <right>393</right>
  950.             <bottom>175</bottom>
  951.         </rect>
  952.         <style>shadow</style>
  953.         <showName> <true /> </showName>
  954.         <highlight> <false /> </highlight>
  955.         <autoHighlight> <true /> </autoHighlight>
  956.         <sharedHighlight> <true /> </sharedHighlight>
  957.         <family>0</family>
  958.         <titleWidth>0</titleWidth>
  959.         <icon>0</icon>
  960.         <textAlign>center</textAlign>
  961.         <font>Chicago</font>
  962.         <textSize>12</textSize>
  963.         <textStyle>plain</textStyle>
  964.         <name>Show Using STR# Text</name>
  965.         <script>-- This button demonstrates how to display balloons
  966. -- using text in STR# resources.  This is a new feature
  967. -- available in version 1.3d1 and newer.
  968. --
  969. -- The first parameter is the "ShowBalloonRes" command.
  970. -- The second parameter is the name of the STR# resource.
  971. -- The third parameter is the index of the string in the STR# resource.  The
  972. -- The remaining parameters are the same as the other ShowBalloon
  973. -- parameters (tip, hotRect, etc.)
  974. --
  975. on mouseUp
  976. put the loc of target into tip
  977. put 1 into index
  978. repeat
  979. put Help("ShowBalloonRes", "myBalloonRes", index, tip)¬¨
  980. into cd fld "helpResult"
  981. if  "-853" is not in cd fld "helpResult" then exit repeat
  982. end repeat
  983. end mouseUp
  984.  
  985. on mouseEnter
  986. ShowAutoBalloon "Click to show balloon text "¬¨
  987. && "which has been stored in a STR# resource."
  988. end mouseEnter
  989.  
  990. on mouseLeave
  991. RemoveAutoBalloon
  992. end mouseLeave
  993.  
  994. </script>
  995.     </part>
  996.     <content>
  997.         <layer>card</layer>
  998.         <id>15</id>
  999.         <text>210,81</text>
  1000.     </content>
  1001.     <content>
  1002.         <layer>card</layer>
  1003.         <id>16</id>
  1004.         <text>This is an example of a balloon message.
  1005. </text>
  1006.     </content>
  1007.     <content>
  1008.         <layer>card</layer>
  1009.         <id>25</id>
  1010.         <text>01774C0C</text>
  1011.     </content>
  1012.     <name>Basic</name>
  1013.     <script>on mouseUp
  1014. put the mouseLoc into cd fld "clickLocation"
  1015. if the hilite of cd btn "Auto-Show" then
  1016. put cd fld "helpMessage" into helpMessage
  1017. put the mouseLoc into tip
  1018. put Help("ShowBalloon", helpMessage, tip)¬¨
  1019. into cd fld "helpResult"
  1020. end if
  1021. end mouseUp
  1022.  
  1023. </script>
  1024. </card>
  1025.  
  1026.  
  1027.